<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .block{
            background:paleturquoise;
        }
        main{
            background: plum;
        }  
    </style>
    <link rel="stylesheet" href="./1-垂直居中.css">
</head>
<body>
    <div class="block" style="height:300px">
        <main>     
            <h1>我们的目标是垂直居中~~~</h1>     
            <p>请帮助我谢谢！！</p> 
        </main>
    </div>
</body>
</html>